package com.ruoyi.system.service.car4s_service.car4s_impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.car4s_mapper.Car4sAppointmentInfoMapper;
import com.ruoyi.system.domain.car4s_domain.Car4sAppointmentInfo;
import com.ruoyi.system.service.car4s_service.ICar4sAppointmentInfoService;

/**
 * 预约信息Service业务层处理
 * 
 * @author LK
 * @date 2024-06-29
 */
@Service
public class Car4sAppointmentInfoServiceImpl implements ICar4sAppointmentInfoService 
{
    @Autowired
    private Car4sAppointmentInfoMapper car4sAppointmentInfoMapper;

    /**
     * 查询预约信息
     * 
     * @param appointmentInfoId 预约信息主键
     * @return 预约信息
     */
    @Override
    public Car4sAppointmentInfo selectCar4sAppointmentInfoByAppointmentInfoId(Long appointmentInfoId)
    {
        return car4sAppointmentInfoMapper.selectCar4sAppointmentInfoByAppointmentInfoId(appointmentInfoId);
    }

    /**
     * 查询预约信息列表
     * 
     * @param car4sAppointmentInfo 预约信息
     * @return 预约信息
     */
    @Override
    public List<Car4sAppointmentInfo> selectCar4sAppointmentInfoList(Car4sAppointmentInfo car4sAppointmentInfo)
    {
        return car4sAppointmentInfoMapper.selectCar4sAppointmentInfoList(car4sAppointmentInfo);
    }

    /**
     * 新增预约信息
     * 
     * @param car4sAppointmentInfo 预约信息
     * @return 结果
     */
    @Override
    public int insertCar4sAppointmentInfo(Car4sAppointmentInfo car4sAppointmentInfo)
    {
        // 将预约技师改为后端自动选择
        // ，，，，，，
        return car4sAppointmentInfoMapper.insertCar4sAppointmentInfo(car4sAppointmentInfo);
    }

    /**
     * 修改预约信息
     * 
     * @param car4sAppointmentInfo 预约信息
     * @return 结果
     */
    @Override
    public int updateCar4sAppointmentInfo(Car4sAppointmentInfo car4sAppointmentInfo)
    {
        return car4sAppointmentInfoMapper.updateCar4sAppointmentInfo(car4sAppointmentInfo);
    }

    /**
     * 批量删除预约信息
     * 
     * @param appointmentInfoIds 需要删除的预约信息主键
     * @return 结果
     */
    @Override
    public int deleteCar4sAppointmentInfoByAppointmentInfoIds(Long[] appointmentInfoIds)
    {
        return car4sAppointmentInfoMapper.deleteCar4sAppointmentInfoByAppointmentInfoIds(appointmentInfoIds);
    }

    /**
     * 删除预约信息信息
     * 
     * @param appointmentInfoId 预约信息主键
     * @return 结果
     */
    @Override
    public int deleteCar4sAppointmentInfoByAppointmentInfoId(Long appointmentInfoId)
    {
        return car4sAppointmentInfoMapper.deleteCar4sAppointmentInfoByAppointmentInfoId(appointmentInfoId);
    }
}
